//
//  OCUserInfoModel.m
//  ocVB
//
//  Created by apple on 2016/10/27.
//  Copyright © 2016年 apple. All rights reserved.
//

#import "OCUserInfoModel.h"

@implementation OCUserInfoModel

- (void)encodeWithCoder:(NSCoder *)coder
{
    [self yy_modelEncodeWithCoder:coder];
}

- (instancetype)initWithCoder:(NSCoder *)coder
{
    self = [super init];
    if (self) {
        [self yy_modelInitWithCoder:coder];
    }
    return self;
}

-(void)setExpires_in:(int)expires_in
{
    _expires_in = expires_in;
    self.expires_Date = [[NSDate alloc] initWithTimeIntervalSinceNow:expires_in];
}


-(NSString *)description
{
    return [NSString stringWithFormat:@"%@--%@--%zd--%@",self.access_token,self.uid,self.expires_in,self.screen_name];
}
@end
